package serven;

import static util.Print.print;

/**
 * Created by ab on 2016/11/2.
 * 证明：基类是从基类"向外"扩散的，所以基类在导出类构造器
 * 可以访问他之前，就完成了初始化。
 */


class Art {
    Art() {
        print("Art constructor");
    }
}

class Drawing extends Art {
    Drawing() {
        print("Drawing constructor");
    }
}

class Cartoon extends Drawing {
    public Cartoon() {
        print("Cartoon constructor");
    }
    public static void main(String[] args){
        Cartoon x=new Cartoon();
    }
}

public class task3 {

}
